package com.tanchengjin.admin.modules.blog.service;


import com.github.pagehelper.PageInfo;
import com.tanchengjin.admin.modules.blog.utils.pagination.Pagination;
import com.tanchengjin.admin.modules.cms.pojo.Article;

import java.util.List;

public interface ArticleService {
    public List<Article> getAll();

    public Article findOne(long id);

    public int delete(long[] id);

    public int update(Article article);

    @Deprecated
    public Pagination<Article> pagination(int page, int size);

    public PageInfo<Article> getArticleListByPagination(int page, int size);

    public PageInfo<Article> getArticleListByPaginationWithSearch(int page, int size, String q);


    public PageInfo<Article> getArticleListByCategoryId(int cid, int page, int size);

    public PageInfo<Article> getArticleListByTag(String tag,int page,int size);



}
